using System;

 namespace QLST_DTO 
{
	 [Serializable]
	 public class KHACH_HANG
	{
	private int maKH;
	private string hoTen;
	private int cMND;
	private DateTime ngaySinh;
	private string gioiTinh;
	private string soDT;
	private DateTime ngayDangKy;
	private string diaChi;
	private int diemTichLuy;
	private int maLoaiKH;
    private string dienThoai;

    public string DienThoai
    {
        get { return dienThoai; }
        set { dienThoai = value; }
    }
	public KHACH_HANG()
	{}
	public KHACH_HANG(int maKH,string hoTen,int cMND,DateTime ngaySinh,string gioiTinh,string soDT,DateTime ngayDangKy,string diaChi,int diemTichLuy,int maLoaiKH)
	{
	this.maKH = maKH;
	this.hoTen = hoTen;
	this.cMND = cMND;
	this.ngaySinh = ngaySinh;
	this.gioiTinh = gioiTinh;
	this.soDT = soDT;
	this.ngayDangKy = ngayDangKy;
	this.diaChi = diaChi;
	this.diemTichLuy = diemTichLuy;
	this.maLoaiKH = maLoaiKH;
	}
	public int MaKH{
	get { return this.maKH;}
	set { if(value==null) 
		throw new Exception("maKH not allow nullvalue.");
		this.maKH=value;
	}	}
	public string HoTen{
	get { return this.hoTen;}
	set { if(value==null) 
		throw new Exception("hoTen not allow nullvalue.");
		this.hoTen=value;
	}	}
	public int CMND{
	get { return this.cMND;}
	set { if(value==null) 
		throw new Exception("cMND not allow nullvalue.");
		this.cMND=value;
	}	}
	public DateTime NgaySinh{
	get { return this.ngaySinh;}
	set { if(value==null) 
		throw new Exception("ngaySinh not allow nullvalue.");
		this.ngaySinh=value;
	}	}
	public string GioiTinh{
	get { return this.gioiTinh;}
	set { if(value==null) 
		throw new Exception("gioiTinh not allow nullvalue.");
		this.gioiTinh=value;
	}	}
	public string SoDT{
	get { return this.soDT;}
	set { if(value==null) 
		throw new Exception("soDT not allow nullvalue.");
		this.soDT=value;
	}	}
	public DateTime NgayDangKy{
	get { return this.ngayDangKy;}
	set {this.ngayDangKy=value;}
	}
	public string DiaChi{
	get { return this.diaChi;}
	set {this.diaChi=value;}
	}
	public int DiemTichLuy{
	get { return this.diemTichLuy;}
	set {this.diemTichLuy=value;}
	}
	public int MaLoaiKH{
	get { return this.maLoaiKH;}
	set { if(value==null) 
		throw new Exception("maLoaiKH not allow nullvalue.");
		this.maLoaiKH=value;
	}	}
	public override string ToString(){
	return this.maKH+"; "+this.hoTen+"; "+this.cMND+"; "+this.ngaySinh+"; "+this.gioiTinh+"; "+this.soDT+"; "+this.ngayDangKy+"; "+this.diaChi+"; "+this.diemTichLuy+"; "+this.maLoaiKH+"; ";
	}
	public override bool Equals(Object obj)
	{
	KHACH_HANG me=(KHACH_HANG)obj;
	bool ret=this.MaKH.Equals(me.MaKH);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.MaKH.GetHashCode();
	}

	}
} 